﻿using System.Collections.Generic;
using ShopB2C.Entity;

namespace ShopB2C.Interfaces 
{

    public interface IRoles
    {
        /// <summary>
        /// 获取所有的组
        /// </summary>
        /// <returns></returns>
        List<UserLevelEntity> GetRoles();
        /// <summary>
        /// 增加组
        /// </summary>
        /// <param name="userLevelEntity">用户组ID</param>
        /// <returns>受影响的行</returns>
        int AppendRole(UserLevelEntity userLevelEntity);
        /// <summary>
        /// 删除组
        /// </summary>
        /// <param name="levelId">关联的组ID</param>
        void RemoveRole(int levelId);
    }
}
